package nameservice;


/**
 * This class is used to store all the information about a servant needed
 * to handle the request the nameservice has to deal with.
 * 
 * @author pascal
 */
public class ServantEntrie {
	
	private String name;
	private String klassenname;
	private String host;
	private int port;
	
	public ServantEntrie(String name, String klassenname,
						String host, int port){
		this.name = name;
		this.klassenname = klassenname;
		this.host = host;
		this.port = port;
	}

	/**
	 * The host with which the servant has been registered
	 * @return the host
	 */
	public String getHost() {
		return host;
	}

	/**
	 * The port with which the servant has been registered
	 * @return the port
	 */
	public int getPort() {
		return port;
	}

	/**
	 * The class-name with which the servant has been registered
	 * @return klassenname the klassenname to set
	 */
	public String getClassname() {
		return klassenname;
	}

	/**
	 * The name with which the servant has been registered
	 * 
	 * @return String
	 * 			the name of the servant
	 */
	public String getName() {
		return name;
	}

}
